package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_staff")
public class StaffBean {
    @TableId(value = "pk_staffId",type = IdType.AUTO)
    private Integer id;
    @TableField("s_name")
    private String name;
    @TableField("s_position")
    private String position;
    @TableField("s_money")
    private Integer money;

    public StaffBean(String name, String position, Integer money) {
        this.name = name;
        this.position = position;
        this.money = money;
    }

    public StaffBean() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "StaffBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", position='" + position + '\'' +
                ", money=" + money +
                '}';
    }
}
